package com.android.job.logic;

import android.os.Handler;

import com.android.job.fusion.FusionCode;
import com.android.job.service.Request;
import com.android.job.service.request.SearchJobRequest;
import com.android.job.service.request.SearchResumeRequest;

public class SearchResumeLogic
{

	private static SearchResumeLogic instance;

	private final static String URL = "http://192.168.10.221:8080/employment/protocol.do";

	private SearchResumeLogic()
	{

	}

	public synchronized static SearchResumeLogic getInstance()
	{
		if (instance == null)
		{
			instance = new SearchResumeLogic();
		}
		return instance;
	}

	public Request searchResume(Handler handler, String salary, String region,
			String type, String degree, String updated, String begin)
	{
		SearchResumeRequest searchResume = new SearchResumeRequest(handler, FusionCode.URL);
		searchResume.setValues(salary, region, type, degree, updated, begin);
		searchResume.getJSONResponse();
		return searchResume;
	}

}
